// 导入函数模块
import helloWorld from "./hello-world";
import imgSrc from './assets/img-1.png';
import svgSrc from './logo.svg';
import exampleText from './assets/example.txt';
import cartSrc from './assets/cart.png'

helloWorld()

// imgSrc
const img = document.createElement('img')
img.style.width = '100%'
img.src = imgSrc
document.body.appendChild(img)

// svgSrc
const svgImg = document.createElement('img')
svgImg.style.width = '150px'
svgImg.src = svgSrc
document.body.appendChild(svgImg)

// exampleText
const block = document.createElement('div')
// block.style.cssText = `width: 200px; height: 200px; background: aliceblue`
// block.textContent = exampleText
block.style.width = '200px'
block.style.height = '200px'
block.style.background = 'aliceblue'
block.innerText = exampleText
document.body.appendChild(block)

// cartSrc
const testImg = document.createElement('img')
testImg.style.width = '100px'
testImg.src = cartSrc
document.body.appendChild(testImg)